@media screen and (min-width: 1366px) and (max-width: 1919px) {
    .header {
        display: flex;
        justify-content: space-between;
        /* Space between logo and menu */
        align-items: center;
        padding: 15px 40px;
        position: relative;
    }

    .header a {
        text-decoration: none;
        transition: all 0.5s ease;
        display: inline-block;
    }

    .header #logo {
        width: 100px;
        transition: filter 0.3s ease;
    }

    .header #logo:hover {
        filter: brightness(0.7);
        cursor: crosshair;
    }

    .header #logo img {
        width: 100%;
        height: 75px;
    }

    #menu {
        display: flex;
        justify-content: space-between;
        width: 80%;
        /* Adjust width if necessary */
    }

    #mobile-menu {
        display: none;
    }

    /*Buttons Header*/
    .buttons {
        display: flex;
        justify-content: space-around;
        top: 20px;
        left: 20px;
        margin-left: 10px;
    }

    .buttons button {
        width: 150px;
        height: 50px;
        background-color: white;
        margin: 0;
        color: var(--text-color);
        position: relative;
        overflow: hidden;
        font-size: 14px;
        letter-spacing: 1px;
        font-weight: 500;
        text-transform: uppercase;
        transition: all 0.3s ease;
        cursor: pointer;
        border: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 3px;
    }

    .buttons button:before,
    .buttons button:after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        background-color: var(--background-button-color);
        transition: all 0.3s cubic-bezier(0.35, 0.1, 0.25, 1);
    }

    .buttons button:before {
        right: 0;
        top: 0;
        transition: all 0.5s cubic-bezier(0.35, 0.1, 0.25, 1);
    }

    .buttons button:after {
        left: 0;
        bottom: 0;
    }

    .buttons button span {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
        padding: 0;
        z-index: 1;
    }

    .buttons button span:before,
    .buttons button span:after {
        content: "";
        position: absolute;
        width: 2px;
        height: 0;
        background-color: var(--background-button-color);
        transition: all 0.3s cubic-bezier(0.35, 0.1, 0.25, 1);
    }

    .buttons button span:before {
        right: 0;
        top: 0;
        transition: all 0.5s cubic-bezier(0.35, 0.1, 0.25, 1);
    }

    .buttons button span:after {
        left: 0;
        bottom: 0;
    }

    .buttons button p {
        padding: 0;
        margin: 0;
        transition: all 0.4s cubic-bezier(0.35, 0.1, 0.25, 1);
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .buttons button p:before,
    .buttons button p:after {
        position: absolute;
        width: 100%;
        transition: all 0.4s cubic-bezier(0.35, 0.1, 0.25, 1);
        z-index: 1;
        left: 0;
    }

    .buttons button p:before {
        content: attr(data-title);
        top: 50%;
        transform: translateY(-50%);
    }

    .buttons button p:after {
        content: attr(data-text);
        top: 150%;
        color: var(--background-button-color);
    }

    .buttons button:hover:before,
    .buttons button:hover:after {
        width: 100%;
        cursor: crosshair;
    }

    .buttons button:hover span {
        z-index: 1;
        cursor: crosshair;
    }

    .buttons button:hover span:before,
    .buttons button:hover span:after {
        height: 100%;
        cursor: crosshair;
    }

    .buttons button:hover p:before {
        top: -50%;
        transform: rotate(5deg);
        cursor: crosshair;
    }

    .buttons button:hover p:after {
        top: 50%;
        transform: translateY(-50%);
        cursor: crosshair;
    }

    .buttons button.start {
        background-color: var(--background-button-color);
        box-shadow: 0px 5px 10px -10px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
    }

    .buttons button.start p:before {
        top: -50%;
        transform: rotate(5deg);
    }

    .buttons button.start p:after {
        color: white;
        transition: all 0s ease;
        content: attr(data-start);
        top: 50%;
        transform: translateY(-50%);
        animation: start 0.3s ease;
        animation-fill-mode: forwards;
    }

    @keyframes start {
        from {
            top: -50%;
        }
    }

    .buttons button.start:hover:before,
    .buttons button.start:hover:after {
        display: none;
        cursor: crosshair;
    }

    .buttons button.start:hover span {
        display: none;
        cursor: crosshair;
    }

    .buttons button:active {
        outline: none;
        border: none;
    }

    .buttons button:focus {
        outline: 0;
    }

    /* Dropdown container */
    .dropdown-container {
        position: relative;
        display: inline-block;
    }

    /* Button style */
    .btn {
        padding: 10px;
        background-color: var(--text-color);
        color: white;
        border: none;
        cursor: pointer;
        text-align: center;
        font-size: 16px;
    }

    /* Dropdown styles */
    .two-column-dropdown {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--text-color);
        color: white;
        width: 450px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        padding: 15px;
        display: flex;
        justify-content: space-between;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        z-index: 999;
    }

    /* Show dropdown on hover */
    .dropdown-container:hover .two-column-dropdown {
        display: flex;
        visibility: visible;
        opacity: 1;
        cursor: crosshair;
    }

    /* Ensure the dropdown is two columns */
    .dropdown-column {
        width: 50%;
    }

    /* Style for column headers */
    .dropdown-column h3 {
        font-size: 14px;
        margin-bottom: 8px;
        color: #f0f0f0;
        text-align: center;
    }

    /* Style for dropdown list */
    .dropdown-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .dropdown-column ul li {
        padding: 5px 0;
    }

    .dropdown-column ul li a {
        display: block;
        padding: 10px;
        color: white;
        text-decoration: none;
        background-color: var(--text-color);
    }

    .dropdown-column ul li a:hover {
        background-color: #f0f0f0;
        color: var(--text-color);
        cursor: crosshair;
    }

    /* Divider between columns */
    .dropdown-divider {
        border: 1px solid #f0f0f0;
        margin: 5px;
    }

    /* Style for the non-clickable "Formations" */
    .no-link {
        cursor: default;
        padding: 10px;
        color: #333;
        text-decoration: none;
    }

    .no-link:hover {
        color: var(--text-color);
        cursor: crosshair;
    }

    /*Main Body*/
    .mains {
        display: flex;
    }

    #section-one {
        height: calc(100vh - 100px);
        width: 100%;
        text-align: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        /* Hide images outside of container */
    }

    #section-two {
        height: 100vh;
        width: 100%;
        text-align: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    #section-five {
        margin-top: 30px;
        width: 100%;
        text-align: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    #center-images {
        display: flex;
        transition: transform 1s ease-in-out;
        width: 300%;
    }

    #center-images {
        position: relative;
        width: 100%;
        height: calc(100vh - 100px);
        overflow: hidden;
    }

    /*Section One*/
    .slide {
        position: absolute;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: left 0.8s ease-in-out, opacity 0.8s ease-in-out;
        background-size: cover;
        background-position: center;
    }

    .slide.active {
        left: 0;
        opacity: 1;
    }

    .slideshow-buttons {
        display: none;
    }

    .slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }

    .slideshow-buttons {
        position: absolute;
        top: 50%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        transform: translateY(-50%);
        z-index: 10;
    }

    .slideshow-buttons button {
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        font-size: 18px;
        transition: background 0.3s ease;
    }

    .slideshow-buttons button:hover {
        background-color: rgba(0, 0, 0, 0.8);
        cursor: crosshair;
    }

    

    .caption {
        position: absolute;
        color: white;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 2;
    }

    .caption h2 {
        margin: 0;
        font-size: 1.8rem;
        color: var(--text-color);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    .caption .paragraph-caption {
        margin: 10px;
        font-size: 1.3rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    .caption a {
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        background-color: var(--text-color);
        padding: 8px;
        border-radius: 5px;
        margin-top: 10px;
        text-transform: uppercase;
        transition: all 0.3s ease;
    }

    .caption a:hover {
        background-color: white;
        color: var(--text-color);
        cursor: crosshair;
    }

    /*Section Two*/
    .image-container {
        width: 80%;
        /* Full width */
        display: flex;
        justify-content: center;
        /* Center the image horizontally */
        margin-bottom: 30px;
        /* Add space below the image container */
    }

    .image-container img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .text-container {
        width: 80%;
        /* Adjust width of the text container */
        text-align: justify;
        /* Justify the text for a book-like appearance */
        line-height: 1.2;
        /* Improve readability by adding line spacing */
    }

    .text-container h2 {
        font-size: 2rem;
        /* Optional: Set the size of the heading */
        margin-bottom: 10px;
        /* Space between the heading and text */
    }

    .text-container p {
        font-size: 1.2rem;
        margin-bottom: 20px;
        /* Add space between paragraphs */
    }

    /*Section Three*/
    .rectangle {
        width: 100%;
        max-width: 1200px;
        /* Adjust max-width as needed */
        padding: 20px;
        border-radius: 10px;
        border: 2px solid #ccc;
        /* Rectangle border */
        background-color: #f9f9f9;
        /* Light background color for the rectangle */
    }

    .icons-container {
        display: flex;
        justify-content: space-around;
        margin-bottom: 30px;
    }

    .icon {
        display: flex;
        flex-direction: column;
        /* Stack icon and text vertically */
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .icon img {
        width: 50px;
        /* Set icon size */
        height: 50px;
        /* Space between icon and text */
    }

    .icon span {
        font-size: 1rem;
        color: #333;
    }

    .images-container {
        display: flex;
        justify-content: space-between;
    }

    .image-item {
        width: 50%;
        /* Each image takes 50% of the width with a little space between */
        position: relative;
    }

    .image-text {
        position: absolute;
        top: 50%;
        /* Vertically center the text */
        left: 10%;
        /* Left-align the text container */
        transform: translateY(-50%);
        /* Adjust for true vertical centering */
        color: #fff;
        font-size: 1.3rem;
        text-align: left;
        /* Left-align the text */
        width: 80%;
        /* Ensure the text container spans enough width */
        z-index: 2;
    }

    .image-text h3,
    .image-text p {
        text-align: left;
        /* Ensure <h3> and <p> are left-aligned */
    }

    .image-text a {
        display: block;
        /* Make the link a block element to center it */
        text-align: center;
        /* Center the link horizontally */
        margin-top: 10px;
        /* Space between the paragraph and link */
        text-decoration: none;
        color: white;
        font-size: 1rem;
        background-color: var(--text-color);
        /* Slightly darker background for the link */
        border-radius: 5px;
        /* Space between the caption and link */
        text-transform: uppercase;
        transition: all 0.3s ease;
        width: 50%;
        padding: 10px;
    }

    .image-text a:hover {
        color: var(--text-color);
        background-color: #fff;
        cursor: crosshair;
    }

    #bright-image {
        height: 350px;
        /* Adjust the image height */
        background-image: url('../../images/graduates.jpeg');
        background-size: cover;
        background-position: center;
        border-bottom-left-radius: 9px;
    }

    #dark-image {
        height: 350px;
        /* Adjust the image height */
        background-image: url('../../images/candidate-wallpaper-dark.webp');
        background-size: cover;
        background-position: center;
        filter: brightness(0.3);
        border-bottom-right-radius: 9px;
    }

    .twopictures-aligned {
        width: 100%;
        max-width: 1200px;
        /* Adjust max-width as needed */
        border-radius: 10px;
        border: 2px solid #ccc;
        /* Rectangle border */
        background-color: #f9f9f9;
        display: flex;
        justify-content: space-between;
    }

    #bright-image-contact-us {
        height: 350px;
        /* Adjust the image height */
        background-image: url('../../images/contact-us-bright-index.png');
        background-size: cover;
        background-position: center;
        border-top-right-radius: 9px;
        border-bottom-right-radius: 9px;
    }

    #dark-image-contact-us {
        height: 350px;
        /* Adjust the image height */
        background-image: url('../../images/contact-us-dark-index.jpeg');
        background-size: cover;
        background-position: center;
        filter: brightness(0.3);
        border-top-left-radius: 9px;
        border-bottom-left-radius: 9px;
    }

    /*Section Five*/
    .row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
        width: 98%;
    }

    .card {
        background-color: #f5f5f5;
        border-radius: 10px;
        padding: 20px;
        box-sizing: border-box;
        text-align: right;
    }

    .full-width-card {
        display: flex;
        justify-content: space-between;
        /* Space between logo and icons */
        width: 70%;
        /* Takes full width */
        align-items: center;
        /* Align items vertically */
    }

    .logo-container {
        flex: 1;
        /* Takes as much space as available */
        text-align: left;
    }

    .logo-img {
        width: 100%;
        max-width: 200px;
        /* Adjust max width as needed */
        transition: filter 0.3s ease;
    }

    .logo-img:hover {
        filter: brightness(0.7);
        cursor: crosshair;
    }

    .icons-right {
        display: flex;
        justify-content: flex-end;
        /* Align icons to the right */
        gap: 0;
        /* Remove any gap between icons */
    }

    .icon-img {
        width: 50px;
        /* Adjust icon size */
        height: auto;
        margin-left: 5px;
        margin-right: 5px;
        /* Small space between icons */
        transition: filter 0.3s ease;
    }

    .icon-img:hover {
        filter: brightness(0.7);
        cursor: crosshair;
    }

    .icon-img:first-child {
        margin-left: 0;
        /* Remove margin from the first icon */
    }

    .second-row {
        display: flex;
        justify-content: space-between;
    }

    .second-row .card {
        width: 32%;
        /* Each card takes 33% width in the second row */
        text-align: left;
    }

    .second-row .card h3 {
        margin-top: 0;
    }

    .second-row .card p {
        margin-bottom: 0;
    }

    .second-row .card a {
        display: block;
        margin-top: 10px;
        text-align: left;
        text-decoration: none;
    }

    .second-row .card a:hover {
        text-decoration: underline;
        cursor: crosshair;
    }

    .card p {
        display: flex;
        align-items: center;
        /* Aligns image and text vertically */
        gap: 10px;
        /* Space between the image and text */
        margin-top: 10px;
    }

    .card p img {
        flex-shrink: 0;
        /* Prevents the image from shrinking */
        height: 28px;
        width: 28px;
    }

    .card-links {
        color: black;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    footer {
        background-color: #eeeeee;
        color: var(--text-color);
        text-align: center;
        padding: 10px;
        width: 100vw;
        /* Use relative positioning for normal flow */
        bottom: 0;
    }
}